import sequelize from "../../db/dbConnext";
import { option } from "../../db/commomConfig";
import { DataTypes } from "sequelize";

import attachmentManageEntity from "../../../entities/system/attachmentManageEntity";
export type IattachmentManage = Omit<attachmentManageEntity, "validateThis">;

const attachmentManageModel = sequelize.define<any, IattachmentManage>(
  "attachmentManage",
  {
  name: {
      type: DataTypes.STRING,
      allowNull: true,
    }, code: {
      type: DataTypes.STRING,
      allowNull: true,
    }, url: {
      type: DataTypes.STRING,
      allowNull: true,
    }
  },
  option
);
export default attachmentManageModel;
